Hey all,
Link lnk
for lnk in o -> "*" do {
read(fullName target (lnk), false)
Object targetObject = target (lnk)
tmp = targetObject."Required_Release_auto"
}
ManuelFelger - Mon Apr 12 07:40:02 EDT 2010 |
Re: problem with loading a target object
I suppose, you would have seen an access problem with the link module or the target module, if you had one. Another possibility would be a link to a baseline, where the read fullname ... would not work.
Link lnk
for lnk in (current Object) -> "*" do {
string s = fullName target (lnk)
read(s, false)
print "Mod:" s "\n"
print "AbsNo:" (targetAbsNo lnk) "\n"
print "Version:" (versionString targetVersion lnk) "\n"
Object targetObject = target (lnk)
if (!null targetObject) {
int tmp = targetObject."Absolute Number"
print "AbsNo:" tmp "\n"
} else { print "NULL" }
}
|
Re: problem with loading a target object Mathias Mamsch - Mon Apr 12 08:14:43 EDT 2010
I suppose, you would have seen an access problem with the link module or the target module, if you had one. Another possibility would be a link to a baseline, where the read fullname ... would not work.
Link lnk
for lnk in (current Object) -> "*" do {
string s = fullName target (lnk)
read(s, false)
print "Mod:" s "\n"
print "AbsNo:" (targetAbsNo lnk) "\n"
print "Version:" (versionString targetVersion lnk) "\n"
Object targetObject = target (lnk)
if (!null targetObject) {
int tmp = targetObject."Absolute Number"
print "AbsNo:" tmp "\n"
} else { print "NULL" }
}
Anyway thanks for your quick reply Mathias! Regards, Manuel |